Linux Shell Bash with special meaning exit code purpose descriptionThe exit command exits the current shell and can terminate the current script execution in a shell script.Common parametersFormat: Exit nExit. Set the exit code to N. (cause the
Linux System Error Codes
The following table provides a list of some common Linux system error codes. For a more complete list, see Linux source code.
Number
Macro
Description
1
EPERM
Operation not permitted
After a Linux user logs on to login, it carries a user ID (UID) and a group ID (GID ). In the Linux File Management background, we can see that each file has nine more permissions to indicate which users are allowed to perform the operations (read,
Common error codes in Linux systems-general Linux technology-Linux programming and kernel information. For details, refer to the following section. In Unix systems, the perror program is used to display the meaning of the operating system error code,
Android permission control code analysis
Before in the article introduced android system management level: http://www.bkjia.com/kf/201204/127682.html, here the core code analysis
The android system makes full use of the linux user permission
In order to conveniently view the error code and its meaning in Linux, a program is written to print the information.
Listerrno. c
# Include # include # include # define MAX_ERRNO 256 int main (int argc, char * argv []) { int n = 0;
MySQL common error codes and code descriptions1005: Failed to create table1006: Failed to create database1007: Database already exists, database creation failed 1008: Database does not exist, delete database failed 1009: Unable to delete database
Principle Analysis:1. triggers are supported after Mysql5, And the TRG and TRN files (in Linux) are automatically generated in the/var/lib/mysql directory after the trigger is created ).For example, create the following trigger:Generate the t. TRG
#ifndef _i386_errno_h#define_i386_errno_h#defineEperm 1/* Operation not permitted */#defineENOENT 2/* No such file or directory */#defineEsrch 3/* No such process */#defineEINTR 4/* Interrupted system call */#defineEIO 5 */I/O error */#defineEnxio 6/
You need to include the header file when you use it# include [Email protected]:~/projects/tfradius$ cat/usr/include/asm-generic/errno-Base. h #ifndef _asm_generic_errno_base_h#define_asm_generic_errno_base_h#defineEperm 1/* Operation not permitted */
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.